#include "../src/common/SDS.h"

int main() {
    sds s = sds_create_empty(100);
    sds_cat(s, "123");
    sds_cat(s, "456");
    printf("s = %s\n", s);
    printf("s->len = %d\n", sds_len(s));

    sds line = sds_create_empty(100);
    sds_cat(line, "abc\n");

    int cnt;
    sds_split(line, sds_len(line), "\n", 1, &cnt);
    printf("cnt = %d\n", cnt);
}